package com.ztools.wx.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * @Author:seeTools
 * @Date: 2023/4/8  20:50
 * @Version 1.0
 */
@Component
public class WxSysConstants {

    public static final String COOKIE_OPENID = "seeTools-openid";
    public static final String COOKIE_MEMBER_ID = "seeTools-member-id";

    private static final String WX_NAME = "星火校园";

    /**
     * 公众号AppId
     */
    public static String WX_APP_ID;

    /**
     * 服务地址
     */
    public static String WX_SERVER_URL;

    /**
     * 测试环境路径
     */
    public static String TEST_URL = "weixin-dev";

    @Value("${wx.serverUrl}")
    public void setWxServerUrl(String wxServerUrl) {
        WX_SERVER_URL = wxServerUrl;
    }


    @Value("${wx.appid}")
    public void setWxAppId(String wxAppId) {
        WX_APP_ID = wxAppId;
    }
}
